<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>爱选</title>
<meta name="keywords" content="" />
<meta name="description"  content="" />
<link href="/static/css/ixuan.css" rel="stylesheet" type="text/css" /></head>
<script type="text/javascript" src="/static/js/jquery-1.4.2.min.js"></script>
<script type="text/javascript" src="/static/js/i.js"></script>
<script type="text/javascript">
	$("document").ready(function(){
		$("b.current").hide();
		$("b.wrong").hide();
	});
</script>
<body>
<div class="top">
    <div class="header">
      <div class="logo"><a href="http://localhost:8080"><img src="/static/images/logo.gif" alt="爱选" /><img src="/static/images/logotext.gif" alt="爱选" /></a></div>
      <div class="headInfo">
          <div class="myInfo">您好，{{user.nickname }} ! <a href="/userhome/{{ user.uid }}">我的爱选</a> <a href="/account/"> 个人中心 </a>  <a href="/logout/">退出</a></div>
          <div class="search"><input name="" type="text" class="seaIn" /><input name="" type="button" class="seaSo" value="搜索"/></div>
      </div>
    </div>
</div>
<form action="/account/" method="post">
<div class="wrapper">
    <div class="main">
        <div class="infoChange">
            <dl>
                <dt>登录名：</dt>
                <dd>{{ user.email }}</dd>
            </dl>
            <dl>
                <dt><em>*</em>昵称：</dt>
                <dd><input name="nickname" type="text" value="{{ user.nickname }}"/></dd>
                <dd><b class="current"></b>&nbsp;</dd>
            </dl>
            <dl>
                <dt>头像：</dt>
                <dd><img src="{{ user.image }}" class="userPic" alt={{ user.nickname }} /><a href="/account/changelogo/">更改</a></dd>
            </dl>
            <dl>
                <dt>密码：</dt>
                <dd><a href="/account/editpasswd/">更改</a></dd>
            </dl>
            <dl>
                <dt><em>*</em>所在地：</dt>
                <dd>
                  <select id="district" name="district" >
                   	{% for district in allDistricts %}
                   		
                   		{% if district.id == user.district %}
                   		<option value="{{ district.id }}" {% if user.district == district.id %} selected {% endif %}>{{ district.name }}</option>
                   		{% else %}
                   		<option value="{{ district.id }}">{{ district.name }}</option>      
                   		{% endif %}             		
                   	{% endfor %}
                  </select>
                </dd>
                <dd><b class="current"></b>&nbsp;</dd>
            </dl>
            <dl>
                <dt>手机：</dt>
                <dd><input name="cellphone" type="text" value = "{{user.cellphone}}"/></dd>
                <dd><b class="current"></b></dd>
            </dl>
        </div>
        <div class="baocun"><input name="" type="submit" class="seaSo" value="保存"/></div>
    </div>
    </form>
    <div class="right">
        <div class="loginIn">
            <i class="lt"></i><i class="rt"></i><i class="lb"></i><i class="rb"></i>
            <div class="loginFo">
                <h3>个人信息</h3>
                <a href="#"><img src={{user.image}} class="userPic" alt={{user.nickname}} /></a>昵称：{{ user.nickname }}<br />注册时间:{{ user.createdate }}
            </div><br clear="all" />
        </div>
        <div class="h10"></div>
       <a href=/problem/create/><img src="/static/images/tounow.gif" alt="立即发起投票" /></a>
       <div class="typeRight">
            <ul>
                <li class="jiaoyu"><a href="#"><span></span>教育</a></li>
                <li class="licai"><a href="#"><span></span>理财</a></li>
                <li class="shuma"><a href="#"><span></span>数码</a></li>
                <li class="xingzuo"><a href="#"><span></span>星座</a></li>
                <li class="hunlian"><a href="#"><span></span>婚恋</a></li>
                <li class="zhekou"><a href="#"><span></span>折扣</a></li>
                <li class="lvyou"><a href="#"><span></span>旅游</a></li>
                <li class="meishi"><a href="#"><span></span>美食</a></li>
                <li class="jujia"><a href="#"><span></span>居家</a></li>
                <li class="zhichang"><a href="#"><span></span>职场</a></li>
                <li class="liwu"><a href="#"><span></span>礼物</a></li>
                <li class="meirong"><a href="#"><span></span>美容</a></li>
                <li class="qiche"><a href="#"><span></span>汽车</a></li>
                <li class="yule"><a href="#"><span></span>娱乐</a></li>
                <li class="bagua"><a href="#"><span></span>八卦</a></li>
                <li class="shenma"><a href="#"><span></span>神马</a></li>
            </ul>
            <br clear="all" />
        </div>
        <div class="hot">
            <div class="hotTie">
                <ul>
                    <li id="month" class="hotN">本月热门投票</li>
                    <li id="week">本周热门投票</li>
                </ul>
            </div>
            <div class="hotCon">
                <ol class="month">
                	{% for p in monthHotProblems %}
                	<li><a href="/problem/{{ p.pid }}/">{{ p.title }}</a></li>
            		{% endfor %}            	
            	</ol>
            	<ol class="week" style="display:none">
                	{% for p in weekHotProblems %}
                	<li><a href="/problem/{{ p.pid }}/">{{ p.title }}</a></li>
            		{% endfor %}            	
            	</ol>
            </div>
        </div>
    </div>
</div>
<div class="foot">
    <div>关于我们 · 联系我们 · 意见反馈   © 2011 dXXXX.com, all rights reserved                                         ICP：34325434667</div>
</div>
</body>
</html>
